<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('amountDiscountItems')} > ${i18n.getMessage('list')}">
	<a href="#" onclick="cc('system/showAddAmountDiscountItem.sgt')">${i18n.getMessage('add')}</a>
</@showTitle>

<br/>

<@display.table id="listTable" name="discountItems" pagesize="20">
	<@display.column title="${i18n.getMessage('amount')}" class="center w100">${(listTable.valueDescription)!}</@display.column>
	<@display.column title="${i18n.getMessage('comment')}">${(listTable.name)!}</@display.column>
	<@display.column title="${i18n.getMessage('notation')}" class="center w100">${(listTable.receiptNotation)!}</@display.column>
	<@display.column title="${i18n.getMessage('active')}" class="center w050"><input type="checkbox" <#if listTable.active>checked="checked"</#if> disabled="disabled" /></@display.column>
	<@display.column title="${i18n.getMessage('edit')}" class="center w050"><img src="images/edit.gif" style="cursor:pointer" onclick="cc('system/showEditAmountDiscountItem.sgt?id=${listTable.id}')"/></@display.column>
	<@display.column title="${i18n.getMessage('delete')}" class="center w050"><img src="images/delete.gif" style="cursor:pointer" onclick="if(confirm('${i18n.getMessage('dialog.delete')}')) { cc('system/deleteAmountDiscountItem.sgt?id=${listTable.id}'); }"/></@display.column>
</@display.table>